//
//  CHBTempViewController.swift
//  weibo.chb
//
//  Created by 褚红彪 on 16/1/21.
//  Copyright © 2016年 chuhongbiao. All rights reserved.
//

import UIKit

class CHBTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.whiteColor()
        navigationItem.title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: "pushRight")
        // Do any additional setup after loading the view.
    }
    @objc private func pushRight(){
        let vc = CHBTempViewController()
        navigationController?.pushViewController(vc, animated: false)
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
